import { action, observable } from 'mobx';

class CommonStore {
  @observable routesOptions = [
    { label: 'login', value: 'login' },
    { label: 'joke', value: 'joke' },
    { label: 'detail', value: 'detail' },
  ];

  @observable currentRoute = 'joke';

  @action setCurrentRoute = (value: string) => {
    this.currentRoute = value;
  };
}

export default CommonStore;
